/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 还款查询 有需求需要订，半成品	/ttFiTripartiteRepay/queryRepay
export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiTripartiteRepay/queryRepay`,params)
// 新增、 修改    /ttFiTripartiteRepay/saveRepay
export const saveRepay = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiTripartiteRepay/saveRepay`, params)

// 导入 /ttFiTripartiteRepay/repayImportFromExcel
export const importExcel = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiTripartiteRepay/repayImportFromExcel`, params, {
  responseType: 'blob'
});
// 导出 有需求需要订，半成品 /ttFiTripartiteRepay/repayExportExcel
export const exportExcel = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiTripartiteRepay/repayExportExcel`, params, {
  responseType: 'blob'
});

// 获取所有资金类型  /ttFiTripartiteRepay/queryTripartiteRepayAccountType
export const gettmFiAccountType = (params) => axios.get(`${SERVER.WHOLESALES}/ttFiTripartiteRepay/queryTripartiteRepayAccountType`, {
  params
})

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
